import api


class App:
    def __init__(self):
        api.configure({'connection': 'postgresql+psycopg2://postgres:postgres@localhost:5432/design'})

    def create_user(self, data):
        return api.create_user(data)


if __name__ == '__main__':
    app = App()
    data = {"id": 1, "name": "datong"}
    app.create_user(data)
